import { ConfigManager } from "../../../com/gengine/resource/ConfigManager";
//class MountModelConfig
    
    export  class MountModelConfig
    {
        constructor()
        {
            
            this.modelArr = [];
            if (MountModelConfig._instance != null) 
            {
                throw new Error(" MountModelConfig 单例 ");
            }
            this.init();
            return;
        }

        public init(): void
        {
            var loc1=ConfigManager.instance.getObjectByFileName("mountModel.xml");
            this.write(loc1);
            return;
        }

        /* internal  */write(arg1: Object): void
        {
            this.modelArr = arg1["face"]["model"] as Array<any>;
            return;
        }

        public getTotalModel(): Array<any>
        {
            if (this.modelArr.length > 0) 
            {
                return this.modelArr;
            }
            return [];
        }

        public static get instance(): MountModelConfig
        {
            if (MountModelConfig._instance == null) 
            {
                MountModelConfig._instance = new MountModelConfig();
            }
            return MountModelConfig._instance;
        }

        /* internal */ /* var */modelArr: Array<any>;

        /* internal */ static /* var */_instance: MountModelConfig;
    }
